﻿#pragma once

// 蛇身
class SnakeBody {
    // 类型
    public: enum Type {
        APPLE,  // 果子
        SNAKE   // 蛇
    };

    private: CBrush* mBrush;    // 画刷
    private: CDC* mDrawer;      // 绘图者
    private: CPoint mPosition;  // 位置
    private: SnakeBody* mNext;  // 下一个蛇身

    public: SnakeBody(CDC*, CPoint*, Type);
    public: ~SnakeBody();
    public: void Draw();
    public: void Erase();
    public: SnakeBody* GetNext();
    public: const CPoint* GetPosition();
    public: void SetNext(SnakeBody*);
    public: void SetPosition(CPoint*);
    public: void SetType(Type);
};
